﻿<!DOCTYPE html>
<html>
  <head>
    <title>使用PS2手柄</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <link href="resources/css/jquery-ui-themes.css" type="text/css" rel="stylesheet"/>
    <link href="resources/css/axure_rp_page.css" type="text/css" rel="stylesheet"/>
    <link href="data/styles.css" type="text/css" rel="stylesheet"/>
    <link href="files/使用ps2手柄/styles.css" type="text/css" rel="stylesheet"/>
    <script src="resources/scripts/jquery-1.7.1.min.js"></script>
    <script src="resources/scripts/jquery-ui-1.8.10.custom.min.js"></script>
    <script src="resources/scripts/prototypePre.js"></script>
    <script src="data/document.js"></script>
    <script src="resources/scripts/prototypePost.js"></script>
    <script src="files/使用ps2手柄/data.js"></script>
    <script type="text/javascript">
      $axure.utils.getTransparentGifPath = function() { return 'resources/images/transparent.gif'; };
      $axure.utils.getOtherPath = function() { return 'resources/Other.html'; };
      $axure.utils.getReloadPath = function() { return 'resources/reload.html'; };
    </script>
  </head>
  <body>
    <div id="base" class="">

      <!-- Unnamed (矩形) -->
      <div id="u1366" class="ax_default _一级标题">
        <div id="u1366_div" class=""></div>
        <div id="u1366_text" class="text ">
          <p><span>所需硬件：</span></p>
        </div>
      </div>

      <!-- Unnamed (图片) -->
      <div id="u1367" class="ax_default image">
        <img id="u1367_img" class="img " src="images/使用ps2手柄/u1367.png"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u1368" class="ax_default label">
        <div id="u1368_div" class=""></div>
        <div id="u1368_text" class="text ">
          <p><span>PS2无线手柄一副（带接收器）</span></p>
        </div>
      </div>

      <!-- Unnamed (组 合) -->
      <div id="u1369" class="ax_default" data-left="562" data-top="316" data-width="187" data-height="103">

        <!-- Unnamed (形状) -->
        <div id="u1370" class="ax_default box_1">
          <img id="u1370_img" class="img " src="images/使用ps2手柄/u1370.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1371" class="ax_default label">
          <div id="u1371_div" class=""></div>
          <div id="u1371_text" class="text ">
            <p><span>CLK</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1372" class="ax_default label">
          <div id="u1372_div" class=""></div>
          <div id="u1372_text" class="text ">
            <p><span>CS</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1373" class="ax_default label">
          <div id="u1373_div" class=""></div>
          <div id="u1373_text" class="text ">
            <p><span>CMD</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1374" class="ax_default label">
          <div id="u1374_div" class=""></div>
          <div id="u1374_text" class="text ">
            <p><span>DAT</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1375" class="ax_default label">
          <div id="u1375_div" class=""></div>
          <div id="u1375_text" class="text ">
            <p><span>VCC</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1376" class="ax_default label">
          <div id="u1376_div" class=""></div>
          <div id="u1376_text" class="text ">
            <p><span>GND</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1377" class="ax_default box_1">
          <div id="u1377_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1378" class="ax_default box_1">
          <div id="u1378_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1379" class="ax_default box_1">
          <div id="u1379_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1380" class="ax_default box_1">
          <div id="u1380_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1381" class="ax_default box_1">
          <div id="u1381_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1382" class="ax_default box_1">
          <div id="u1382_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1383" class="ax_default box_1">
          <div id="u1383_div" class=""></div>
        </div>

        <!-- Unnamed (组 合) -->
        <div id="u1384" class="ax_default" data-left="570" data-top="337" data-width="50" data-height="20">

          <!-- Unnamed (矩形) -->
          <div id="u1385" class="ax_default box_1">
            <div id="u1385_div" class=""></div>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1386" class="ax_default ellipse">
            <img id="u1386_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1387" class="ax_default ellipse">
            <img id="u1387_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1388" class="ax_default ellipse">
            <img id="u1388_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>
        </div>

        <!-- Unnamed (组 合) -->
        <div id="u1389" class="ax_default" data-left="630" data-top="337" data-width="50" data-height="20">

          <!-- Unnamed (矩形) -->
          <div id="u1390" class="ax_default box_1">
            <div id="u1390_div" class=""></div>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1391" class="ax_default ellipse">
            <img id="u1391_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1392" class="ax_default ellipse">
            <img id="u1392_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1393" class="ax_default ellipse">
            <img id="u1393_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>
        </div>

        <!-- Unnamed (组 合) -->
        <div id="u1394" class="ax_default" data-left="690" data-top="337" data-width="50" data-height="20">

          <!-- Unnamed (矩形) -->
          <div id="u1395" class="ax_default box_1">
            <div id="u1395_div" class=""></div>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1396" class="ax_default ellipse">
            <img id="u1396_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1397" class="ax_default ellipse">
            <img id="u1397_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1398" class="ax_default ellipse">
            <img id="u1398_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1399" class="ax_default label">
          <div id="u1399_div" class=""></div>
          <div id="u1399_text" class="text ">
            <p><span>PS2手柄转接器</span></p>
          </div>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u1400" class="ax_default label">
        <div id="u1400_div" class=""></div>
        <div id="u1400_text" class="text ">
          <p><span>PS2无线手柄转接器（可选，建议使用）</span></p>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u1401" class="ax_default _一级标题">
        <div id="u1401_div" class=""></div>
        <div id="u1401_text" class="text ">
          <p><span>硬件接线：</span></p>
        </div>
      </div>

      <!-- Unnamed (组 合) -->
      <div id="u1402" class="ax_default" data-left="247" data-top="927" data-width="110" data-height="281">

        <!-- Unnamed (矩形) -->
        <div id="u1403" class="ax_default box_1">
          <div id="u1403_div" class=""></div>
          <div id="u1403_text" class="text ">
            <p><span>Arduino</span></p><p><span>NANO</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1404" class="ax_default box_1">
          <div id="u1404_div" class=""></div>
          <div id="u1404_text" class="text ">
            <p><span>0</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1405" class="ax_default box_1">
          <div id="u1405_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1406" class="ax_default box_1">
          <div id="u1406_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1407" class="ax_default box_1">
          <div id="u1407_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1408" class="ax_default box_1">
          <div id="u1408_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1409" class="ax_default box_1">
          <div id="u1409_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1410" class="ax_default box_1">
          <div id="u1410_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1411" class="ax_default ellipse">
          <img id="u1411_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1412" class="ax_default box_1">
          <div id="u1412_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1413" class="ax_default label">
          <div id="u1413_div" class=""></div>
          <div id="u1413_text" class="text ">
            <p><span>VIN</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1414" class="ax_default ellipse">
          <img id="u1414_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1415" class="ax_default box_1">
          <div id="u1415_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1416" class="ax_default label">
          <div id="u1416_div" class=""></div>
          <div id="u1416_text" class="text ">
            <p><span>GND</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1417" class="ax_default ellipse">
          <img id="u1417_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1418" class="ax_default box_1">
          <div id="u1418_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1419" class="ax_default label">
          <div id="u1419_div" class=""></div>
          <div id="u1419_text" class="text ">
            <p><span>RST</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1420" class="ax_default ellipse">
          <img id="u1420_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1421" class="ax_default box_1">
          <div id="u1421_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1422" class="ax_default label">
          <div id="u1422_div" class=""></div>
          <div id="u1422_text" class="text ">
            <p><span>5V</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1423" class="ax_default ellipse">
          <img id="u1423_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1424" class="ax_default box_1">
          <div id="u1424_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1425" class="ax_default label">
          <div id="u1425_div" class=""></div>
          <div id="u1425_text" class="text ">
            <p><span>A7</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1426" class="ax_default ellipse">
          <img id="u1426_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1427" class="ax_default box_1">
          <div id="u1427_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1428" class="ax_default label">
          <div id="u1428_div" class=""></div>
          <div id="u1428_text" class="text ">
            <p><span>A6</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1429" class="ax_default ellipse">
          <img id="u1429_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1430" class="ax_default label">
          <div id="u1430_div" class=""></div>
          <div id="u1430_text" class="text ">
            <p><span>A5</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1431" class="ax_default box_1">
          <div id="u1431_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1432" class="ax_default ellipse">
          <img id="u1432_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1433" class="ax_default box_1">
          <div id="u1433_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1434" class="ax_default label">
          <div id="u1434_div" class=""></div>
          <div id="u1434_text" class="text ">
            <p><span>A4</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1435" class="ax_default ellipse">
          <img id="u1435_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1436" class="ax_default box_1">
          <div id="u1436_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1437" class="ax_default label">
          <div id="u1437_div" class=""></div>
          <div id="u1437_text" class="text ">
            <p><span>A3</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1438" class="ax_default ellipse">
          <img id="u1438_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1439" class="ax_default box_1">
          <div id="u1439_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1440" class="ax_default label">
          <div id="u1440_div" class=""></div>
          <div id="u1440_text" class="text ">
            <p><span>A2</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1441" class="ax_default ellipse">
          <img id="u1441_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1442" class="ax_default box_1">
          <div id="u1442_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1443" class="ax_default label">
          <div id="u1443_div" class=""></div>
          <div id="u1443_text" class="text ">
            <p><span>A1</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1444" class="ax_default ellipse">
          <img id="u1444_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1445" class="ax_default box_1">
          <div id="u1445_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1446" class="ax_default label">
          <div id="u1446_div" class=""></div>
          <div id="u1446_text" class="text ">
            <p><span>A0</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1447" class="ax_default ellipse">
          <img id="u1447_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1448" class="ax_default box_1">
          <div id="u1448_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1449" class="ax_default label">
          <div id="u1449_div" class=""></div>
          <div id="u1449_text" class="text ">
            <p><span>REF</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1450" class="ax_default ellipse">
          <img id="u1450_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1451" class="ax_default box_1">
          <div id="u1451_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1452" class="ax_default label">
          <div id="u1452_div" class=""></div>
          <div id="u1452_text" class="text ">
            <p><span>3V3</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1453" class="ax_default ellipse">
          <img id="u1453_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1454" class="ax_default box_1">
          <div id="u1454_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1455" class="ax_default label">
          <div id="u1455_div" class=""></div>
          <div id="u1455_text" class="text ">
            <p><span>D13</span></p>
          </div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1456" class="ax_default ellipse">
          <img id="u1456_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1457" class="ax_default box_1">
          <div id="u1457_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1458" class="ax_default ellipse">
          <img id="u1458_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1459" class="ax_default box_1">
          <div id="u1459_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1460" class="ax_default ellipse">
          <img id="u1460_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1461" class="ax_default box_1">
          <div id="u1461_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1462" class="ax_default ellipse">
          <img id="u1462_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1463" class="ax_default box_1">
          <div id="u1463_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1464" class="ax_default ellipse">
          <img id="u1464_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1465" class="ax_default box_1">
          <div id="u1465_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1466" class="ax_default ellipse">
          <img id="u1466_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1467" class="ax_default box_1">
          <div id="u1467_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1468" class="ax_default ellipse">
          <img id="u1468_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1469" class="ax_default box_1">
          <div id="u1469_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1470" class="ax_default ellipse">
          <img id="u1470_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1471" class="ax_default box_1">
          <div id="u1471_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1472" class="ax_default ellipse">
          <img id="u1472_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1473" class="ax_default box_1">
          <div id="u1473_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1474" class="ax_default ellipse">
          <img id="u1474_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1475" class="ax_default box_1">
          <div id="u1475_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1476" class="ax_default ellipse">
          <img id="u1476_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1477" class="ax_default box_1">
          <div id="u1477_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1478" class="ax_default ellipse">
          <img id="u1478_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1479" class="ax_default box_1">
          <div id="u1479_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1480" class="ax_default ellipse">
          <img id="u1480_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1481" class="ax_default box_1">
          <div id="u1481_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1482" class="ax_default ellipse">
          <img id="u1482_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1483" class="ax_default box_1">
          <div id="u1483_div" class=""></div>
        </div>

        <!-- Unnamed (椭圆形) -->
        <div id="u1484" class="ax_default ellipse">
          <img id="u1484_img" class="img " src="images/四角开关/u87.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1485" class="ax_default box_1">
          <div id="u1485_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1486" class="ax_default label">
          <div id="u1486_div" class=""></div>
          <div id="u1486_text" class="text ">
            <p><span>TX</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1487" class="ax_default label">
          <div id="u1487_div" class=""></div>
          <div id="u1487_text" class="text ">
            <p><span>RX</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1488" class="ax_default label">
          <div id="u1488_div" class=""></div>
          <div id="u1488_text" class="text ">
            <p><span>RST</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1489" class="ax_default label">
          <div id="u1489_div" class=""></div>
          <div id="u1489_text" class="text ">
            <p><span>GND</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1490" class="ax_default label">
          <div id="u1490_div" class=""></div>
          <div id="u1490_text" class="text ">
            <p><span>D2</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1491" class="ax_default label">
          <div id="u1491_div" class=""></div>
          <div id="u1491_text" class="text ">
            <p><span>D3</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1492" class="ax_default label">
          <div id="u1492_div" class=""></div>
          <div id="u1492_text" class="text ">
            <p><span>D4</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1493" class="ax_default label">
          <div id="u1493_div" class=""></div>
          <div id="u1493_text" class="text ">
            <p><span>D5</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1494" class="ax_default label">
          <div id="u1494_div" class=""></div>
          <div id="u1494_text" class="text ">
            <p><span>D6</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1495" class="ax_default label">
          <div id="u1495_div" class=""></div>
          <div id="u1495_text" class="text ">
            <p><span>D7</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1496" class="ax_default label">
          <div id="u1496_div" class=""></div>
          <div id="u1496_text" class="text ">
            <p><span>D8</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1497" class="ax_default label">
          <div id="u1497_div" class=""></div>
          <div id="u1497_text" class="text ">
            <p><span>D9</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1498" class="ax_default label">
          <div id="u1498_div" class=""></div>
          <div id="u1498_text" class="text ">
            <p><span>D10</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1499" class="ax_default label">
          <div id="u1499_div" class=""></div>
          <div id="u1499_text" class="text ">
            <p><span>D11</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1500" class="ax_default label">
          <div id="u1500_div" class=""></div>
          <div id="u1500_text" class="text ">
            <p><span>D12</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1501" class="ax_default box_1">
          <div id="u1501_div" class=""></div>
          <div id="u1501_text" class="text ">
            <p><span>USB</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1502" class="ax_default box_1">
          <div id="u1502_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1503" class="ax_default box_1">
          <div id="u1503_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1504" class="ax_default box_1">
          <div id="u1504_div" class=""></div>
        </div>
      </div>

      <!-- Unnamed (组 合) -->
      <div id="u1505" class="ax_default" data-left="50" data-top="618" data-width="218" data-height="204">

        <!-- Unnamed (矩形) -->
        <div id="u1506" class="ax_default box_1">
          <div id="u1506_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1507" class="ax_default box_1">
          <div id="u1507_div" class=""></div>
        </div>

        <!-- Unnamed (形状) -->
        <div id="u1508" class="ax_default label">
          <img id="u1508_img" class="img " src="images/使用ps2手柄/u1508.png"/>
          <div id="u1508_text" class="text ">
            <p><span>PS2</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1509" class="ax_default label">
          <div id="u1509_div" class=""></div>
          <div id="u1509_text" class="text ">
            <p><span>无线手柄接收器</span></p>
          </div>
        </div>

        <!-- Unnamed (组 合) -->
        <div id="u1510" class="ax_default" data-left="66" data-top="780" data-width="187" data-height="35">

          <!-- Unnamed (矩形) -->
          <div id="u1511" class="ax_default box_1">
            <div id="u1511_div" class=""></div>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1512" class="ax_default ellipse">
            <img id="u1512_img" class="img " src="images/使用ps2手柄/u1512.png"/>
          </div>

          <!-- Unnamed (垂直线) -->
          <div id="u1513" class="ax_default line">
            <img id="u1513_img" class="img " src="images/使用ps2手柄/u1513.png"/>
          </div>

          <!-- Unnamed (垂直线) -->
          <div id="u1514" class="ax_default line">
            <img id="u1514_img" class="img " src="images/使用ps2手柄/u1513.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1515" class="ax_default ellipse">
            <img id="u1515_img" class="img " src="images/使用ps2手柄/u1512.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1516" class="ax_default ellipse">
            <img id="u1516_img" class="img " src="images/使用ps2手柄/u1512.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1517" class="ax_default ellipse">
            <img id="u1517_img" class="img " src="images/使用ps2手柄/u1512.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1518" class="ax_default ellipse">
            <img id="u1518_img" class="img " src="images/使用ps2手柄/u1512.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1519" class="ax_default ellipse">
            <img id="u1519_img" class="img " src="images/使用ps2手柄/u1512.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1520" class="ax_default ellipse">
            <img id="u1520_img" class="img " src="images/使用ps2手柄/u1512.png"/>
          </div>

          <!-- Unnamed (矩形) -->
          <div id="u1521" class="ax_default label">
            <div id="u1521_div" class=""></div>
            <div id="u1521_text" class="text ">
              <p><span>DAT</span></p>
            </div>
          </div>

          <!-- Unnamed (矩形) -->
          <div id="u1522" class="ax_default label">
            <div id="u1522_div" class=""></div>
            <div id="u1522_text" class="text ">
              <p><span>CMD</span></p>
            </div>
          </div>

          <!-- Unnamed (矩形) -->
          <div id="u1523" class="ax_default label">
            <div id="u1523_div" class=""></div>
            <div id="u1523_text" class="text ">
              <p><span>GND</span></p>
            </div>
          </div>

          <!-- Unnamed (矩形) -->
          <div id="u1524" class="ax_default label">
            <div id="u1524_div" class=""></div>
            <div id="u1524_text" class="text ">
              <p><span>VCC</span></p>
            </div>
          </div>

          <!-- Unnamed (矩形) -->
          <div id="u1525" class="ax_default label">
            <div id="u1525_div" class=""></div>
            <div id="u1525_text" class="text ">
              <p><span>CLK</span></p>
            </div>
          </div>

          <!-- Unnamed (矩形) -->
          <div id="u1526" class="ax_default label">
            <div id="u1526_div" class=""></div>
            <div id="u1526_text" class="text ">
              <p><span>CS</span></p>
            </div>
          </div>
        </div>
      </div>

      <!-- Unnamed (组 合) -->
      <div id="u1527" class="ax_default" data-left="320" data-top="719" data-width="187" data-height="103">

        <!-- Unnamed (形状) -->
        <div id="u1528" class="ax_default box_1">
          <img id="u1528_img" class="img " src="images/使用ps2手柄/u1370.png"/>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1529" class="ax_default label">
          <div id="u1529_div" class=""></div>
          <div id="u1529_text" class="text ">
            <p><span>CLK</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1530" class="ax_default label">
          <div id="u1530_div" class=""></div>
          <div id="u1530_text" class="text ">
            <p><span>CS</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1531" class="ax_default label">
          <div id="u1531_div" class=""></div>
          <div id="u1531_text" class="text ">
            <p><span>CMD</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1532" class="ax_default label">
          <div id="u1532_div" class=""></div>
          <div id="u1532_text" class="text ">
            <p><span>DAT</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1533" class="ax_default label">
          <div id="u1533_div" class=""></div>
          <div id="u1533_text" class="text ">
            <p><span>VCC</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1534" class="ax_default label">
          <div id="u1534_div" class=""></div>
          <div id="u1534_text" class="text ">
            <p><span>GND</span></p>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1535" class="ax_default box_1">
          <div id="u1535_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1536" class="ax_default box_1">
          <div id="u1536_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1537" class="ax_default box_1">
          <div id="u1537_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1538" class="ax_default box_1">
          <div id="u1538_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1539" class="ax_default box_1">
          <div id="u1539_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1540" class="ax_default box_1">
          <div id="u1540_div" class=""></div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1541" class="ax_default box_1">
          <div id="u1541_div" class=""></div>
        </div>

        <!-- Unnamed (组 合) -->
        <div id="u1542" class="ax_default" data-left="328" data-top="740" data-width="50" data-height="20">

          <!-- Unnamed (矩形) -->
          <div id="u1543" class="ax_default box_1">
            <div id="u1543_div" class=""></div>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1544" class="ax_default ellipse">
            <img id="u1544_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1545" class="ax_default ellipse">
            <img id="u1545_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1546" class="ax_default ellipse">
            <img id="u1546_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>
        </div>

        <!-- Unnamed (组 合) -->
        <div id="u1547" class="ax_default" data-left="388" data-top="740" data-width="50" data-height="20">

          <!-- Unnamed (矩形) -->
          <div id="u1548" class="ax_default box_1">
            <div id="u1548_div" class=""></div>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1549" class="ax_default ellipse">
            <img id="u1549_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1550" class="ax_default ellipse">
            <img id="u1550_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1551" class="ax_default ellipse">
            <img id="u1551_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>
        </div>

        <!-- Unnamed (组 合) -->
        <div id="u1552" class="ax_default" data-left="448" data-top="740" data-width="50" data-height="20">

          <!-- Unnamed (矩形) -->
          <div id="u1553" class="ax_default box_1">
            <div id="u1553_div" class=""></div>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1554" class="ax_default ellipse">
            <img id="u1554_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1555" class="ax_default ellipse">
            <img id="u1555_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>

          <!-- Unnamed (椭圆形) -->
          <div id="u1556" class="ax_default ellipse">
            <img id="u1556_img" class="img " src="images/使用ps2手柄/u1386.png"/>
          </div>
        </div>

        <!-- Unnamed (矩形) -->
        <div id="u1557" class="ax_default label">
          <div id="u1557_div" class=""></div>
          <div id="u1557_text" class="text ">
            <p><span>PS2手柄转接器</span></p>
          </div>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u1558" class="ax_default _文本段落">
        <div id="u1558_div" class=""></div>
        <div id="u1558_text" class="text ">
          <p><span style="font-family:'Arial Negreta', 'Arial Normal', 'Arial';font-weight:700;">Tips:</span></p><p><span style="font-family:'Arial Normal', 'Arial';font-weight:400;">如果没有转接器就直接对照手柄接收器的针脚接线。</span></p>
        </div>
      </div>

      <!-- Unnamed (连接线) -->
      <div id="u1559" class="ax_default _连接线">
        <img id="u1559_seg0" class="img " src="images/使用ps2手柄/u1559_seg0.png" alt="u1559_seg0"/>
        <img id="u1559_seg1" class="img " src="images/使用ps2手柄/u1559_seg1.png" alt="u1559_seg1"/>
        <div id="u1559_text" class="text " style="display:none; visibility: hidden">
          <p></p>
        </div>
      </div>

      <!-- Unnamed (连接线) -->
      <div id="u1560" class="ax_default _连接线">
        <img id="u1560_seg0" class="img " src="images/使用ps2手柄/u1560_seg0.png" alt="u1560_seg0"/>
        <img id="u1560_seg1" class="img " src="images/使用ps2手柄/u1560_seg1.png" alt="u1560_seg1"/>
        <img id="u1560_seg2" class="img " src="images/使用ps2手柄/u1560_seg2.png" alt="u1560_seg2"/>
        <img id="u1560_seg3" class="img " src="images/使用ps2手柄/u1560_seg3.png" alt="u1560_seg3"/>
        <div id="u1560_text" class="text " style="display:none; visibility: hidden">
          <p></p>
        </div>
      </div>

      <!-- Unnamed (连接线) -->
      <div id="u1561" class="ax_default _连接线">
        <img id="u1561_seg0" class="img " src="images/使用ps2手柄/u1561_seg0.png" alt="u1561_seg0"/>
        <img id="u1561_seg1" class="img " src="images/使用ps2手柄/u1561_seg1.png" alt="u1561_seg1"/>
        <img id="u1561_seg2" class="img " src="images/使用ps2手柄/u1561_seg2.png" alt="u1561_seg2"/>
        <img id="u1561_seg3" class="img " src="images/使用ps2手柄/u1561_seg3.png" alt="u1561_seg3"/>
        <div id="u1561_text" class="text " style="display:none; visibility: hidden">
          <p></p>
        </div>
      </div>

      <!-- Unnamed (连接线) -->
      <div id="u1562" class="ax_default _连接线">
        <img id="u1562_seg0" class="img " src="images/使用ps2手柄/u1562_seg0.png" alt="u1562_seg0"/>
        <img id="u1562_seg1" class="img " src="images/使用ps2手柄/u1562_seg1.png" alt="u1562_seg1"/>
        <img id="u1562_seg2" class="img " src="images/使用ps2手柄/u1562_seg2.png" alt="u1562_seg2"/>
        <img id="u1562_seg3" class="img " src="images/使用ps2手柄/u1562_seg3.png" alt="u1562_seg3"/>
        <div id="u1562_text" class="text " style="display:none; visibility: hidden">
          <p></p>
        </div>
      </div>

      <!-- Unnamed (连接线) -->
      <div id="u1563" class="ax_default _连接线">
        <img id="u1563_seg0" class="img " src="images/使用ps2手柄/u1563_seg0.png" alt="u1563_seg0"/>
        <img id="u1563_seg1" class="img " src="images/使用ps2手柄/u1563_seg1.png" alt="u1563_seg1"/>
        <img id="u1563_seg2" class="img " src="images/使用ps2手柄/u1563_seg2.png" alt="u1563_seg2"/>
        <img id="u1563_seg3" class="img " src="images/使用ps2手柄/u1563_seg3.png" alt="u1563_seg3"/>
        <div id="u1563_text" class="text " style="display:none; visibility: hidden">
          <p></p>
        </div>
      </div>

      <!-- Unnamed (连接线) -->
      <div id="u1564" class="ax_default _连接线">
        <img id="u1564_seg0" class="img " src="images/四角开关/u182_seg0.png" alt="u1564_seg0"/>
        <img id="u1564_seg1" class="img " src="images/使用ps2手柄/u1564_seg1.png" alt="u1564_seg1"/>
        <img id="u1564_seg2" class="img " src="images/使用ps2手柄/u1564_seg2.png" alt="u1564_seg2"/>
        <div id="u1564_text" class="text " style="display:none; visibility: hidden">
          <p></p>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u1565" class="ax_default _一级标题">
        <div id="u1565_div" class=""></div>
        <div id="u1565_text" class="text ">
          <p><span>示例代码：</span></p>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u1566" class="ax_default _文本段落">
        <div id="u1566_div" class=""></div>
        <div id="u1566_text" class="text ">
          <p><span>#include &lt;PS2X_lib.h&gt;</span></p><p><span><br></span></p><p><span>#define CLK&nbsp; 7</span></p><p><span>#define CMD&nbsp; 5</span></p><p><span>#define CS&nbsp;&nbsp; 6</span></p><p><span>#define DAT&nbsp; 4</span></p><p><span>PS2X ps2x;</span></p><p><span><br></span></p><p><span>//right now, the library does NOT support hot-pluggable controllers, meaning</span></p><p><span>//you must always either restart your Arduino after you connect the controller,</span></p><p><span>//or call config_gamepad(pins) again after connecting the controller.</span></p><p><span><br></span></p><p><span>int error = 0;</span></p><p><span>byte type = 0;</span></p><p><span>byte vibrate = 0;</span></p><p><span>int count = 10;</span></p><p><span><br></span></p><p><span>void setup()</span></p><p><span>{</span></p><p><span>&nbsp; Serial.begin(57600);</span></p><p><span><br></span></p><p><span>&nbsp; while (count &gt; 0)</span></p><p><span>&nbsp; {</span></p><p><span>&nbsp;&nbsp;&nbsp; count--;</span></p><p><span>&nbsp;&nbsp;&nbsp; error = ps2x.config_gamepad(CLK, CMD, CS, DAT, true, true); //GamePad(clock, command, attention, data, Pressures?, Rumble?)</span></p><p><span>&nbsp;&nbsp;&nbsp; if (error == 0)</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Found Controller, configured successful&quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Try out all the buttons, X will vibrate the controller, faster as you press harder;&quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;holding L1 or R1 will print out the analog stick values.&quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Go to www.billporter.info for updates and to report bugs.&quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; break;</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (error == 1)</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;No controller found, check wiring, see readme.txt to enable debug. visit www.billporter.info for troubleshooting tips&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (error == 2)</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Controller found but not accepting commands. see readme.txt to enable debug. Visit www.billporter.info for troubleshooting tips&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (error == 3)</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Controller refusing to enter Pressures mode, may not support it. &quot;);</span></p><p><span><br></span></p><p><span>&nbsp;&nbsp;&nbsp; delay(100);</span></p><p><span>&nbsp; }</span></p><p><span><br></span></p><p><span>&nbsp; type = ps2x.readType();</span></p><p><span>&nbsp; switch (type)</span></p><p><span>&nbsp; {</span></p><p><span>&nbsp; case 0:</span></p><p><span>&nbsp;&nbsp;&nbsp; Serial.println(&quot;Unknown Controller type&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; break;</span></p><p><span>&nbsp; case 1:</span></p><p><span>&nbsp;&nbsp;&nbsp; Serial.println(&quot;DualShock Controller Found&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; break;</span></p><p><span>&nbsp; case 2:</span></p><p><span>&nbsp;&nbsp;&nbsp; Serial.println(&quot;GuitarHero Controller Found&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; break;</span></p><p><span>&nbsp; }</span></p><p><span>}</span></p><p><span><br></span></p><p><span>void loop()</span></p><p><span>{</span></p><p><span>&nbsp; /* You must Read Gamepad to get new values</span></p><p><span>&nbsp;&nbsp; &nbsp; &nbsp; Read GamePad and set vibration values</span></p><p><span>&nbsp;&nbsp; &nbsp; &nbsp; ps2x.read_gamepad(small motor on/off, larger motor strenght from 0-255)</span></p><p><span>&nbsp;&nbsp; &nbsp; &nbsp; if you don't enable the rumble, use ps2x.read_gamepad(); with no values</span></p><p><span>&nbsp;&nbsp; &nbsp; &nbsp; </span></p><p><span>&nbsp;&nbsp; &nbsp; &nbsp; you should call this at least once a second</span></p><p><span>&nbsp;&nbsp; &nbsp; &nbsp; */</span></p><p><span><br></span></p><p><span>&nbsp; if (error == 1)</span></p><p><span>&nbsp;&nbsp;&nbsp; return;</span></p><p><span><br></span></p><p><span>&nbsp; if (type == 2)</span></p><p><span>&nbsp; {</span></p><p><span><br></span></p><p><span>&nbsp;&nbsp;&nbsp; ps2x.read_gamepad(); //read controller</span></p><p><span><br></span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.ButtonPressed(GREEN_FRET))</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Green Fret Pressed&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.ButtonPressed(RED_FRET))</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Red Fret Pressed&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.ButtonPressed(YELLOW_FRET))</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Yellow Fret Pressed&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.ButtonPressed(BLUE_FRET))</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Blue Fret Pressed&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.ButtonPressed(ORANGE_FRET))</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Orange Fret Pressed&quot;);</span></p><p><span><br></span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.ButtonPressed(STAR_POWER))</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Star Power Command&quot;);</span></p><p><span><br></span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.Button(UP_STRUM)) //will be TRUE as long as button is pressed</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Up Strum&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.Button(DOWN_STRUM))</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;DOWN Strum&quot;);</span></p><p><span><br></span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.Button(PSB_START)) //will be TRUE as long as button is pressed</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Start is being held&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.Button(PSB_SELECT))</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Select is being held&quot;);</span></p><p><span><br></span></p><p><span>&nbsp;&nbsp;&nbsp; if (ps2x.Button(ORANGE_FRET)) // print stick value IF TRUE</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;Wammy Bar Position:&quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(WHAMMY_BAR), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp; }</span></p><p><span><br></span></p><p><span>&nbsp; else</span></p><p><span>&nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //DualShock Controller</span></p><p><span>&nbsp;&nbsp;&nbsp; ps2x.read_gamepad(false, vibrate); //read controller and set large motor to spin at 'vibrate' speed</span></p><p><span><br></span></p><p><span>&nbsp;&nbsp;&nbsp; if(ps2x.Button(PSB_START)) //will be TRUE as long as button is pressed</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Start is being held&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_SELECT))</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Select is being held&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_SELECT))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(&quot;Select is being held&quot;);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_PAD_UP))</span></p><p><span>&nbsp;&nbsp;&nbsp; { //will be TRUE as long as button is pressed</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;Up held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSAB_PAD_UP), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_PAD_RIGHT))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;Right held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSAB_PAD_RIGHT), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_PAD_LEFT))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;LEFT held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSAB_PAD_LEFT), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_PAD_DOWN))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;DOWN held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSAB_PAD_DOWN), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_RED))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;Circle held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSB_RED), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_PINK))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;Square held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSB_PINK), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_BLUE))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;X held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSB_BLUE), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_GREEN))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;Triangle held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSB_GREEN), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_L3))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;L3 held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSB_L3), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_L2))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;L2 held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSB_L2), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_L1))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;L1 held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSB_L1), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_R3))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;R3 held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSB_R3), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_R2))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;R2 held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSB_R2), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp;&nbsp;&nbsp; else if (ps2x.Button(PSB_R1))</span></p><p><span>&nbsp;&nbsp;&nbsp; {</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.print(&quot;R1 held this hard: &quot;);</span></p><p><span>&nbsp;&nbsp; &nbsp;&nbsp; Serial.println(ps2x.Analog(PSB_R1), DEC);</span></p><p><span>&nbsp;&nbsp;&nbsp; }</span></p><p><span>&nbsp; }</span></p><p><span><br></span></p><p><span>&nbsp; delay(50);</span></p><p><span>}</span></p>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u1567" class="ax_default _一级标题">
        <div id="u1567_div" class=""></div>
        <div id="u1567_text" class="text ">
          <p><span>运行结果：</span></p>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u1568" class="ax_default label">
        <div id="u1568_div" class=""></div>
        <div id="u1568_text" class="text ">
          <p><span>手柄按键按下时可以在串口查看器内查看对应的按键提示。</span></p>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u1569" class="ax_default label">
        <div id="u1569_div" class=""></div>
        <div id="u1569_text" class="text ">
          <p><span>代码需要安装</span><span>PS2X_lib库，点击查看安装教程</span></p>
        </div>
      </div>
    </div>
  </body>
</html>
